import Vue from 'vue'

const context = require.context('.', false, /\.vue$/)
context.keys().forEach(name => {
  Vue.component(
    name.replace(/\.\//, '').replace(/\.vue$/, ''),
    context(name).default
  )
})
